export const getTimeHi = () => {
  const data = [
    {time: 6, msg: '夜深了'},
    {time: 12, msg: '上午好'},
    {time: 18,msg:'下午好'},
    {time: 24,msg:'晚上好'}
  ]
  let hour = new Date().getHours()
  let result = data.find((item,key) => hour <= item.time);
  return result?.msg;
}
